﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShowBusTypeControl.ascx.cs" Inherits="Control_ShowBusTypeControl" %>
<h2>Bus Type Settings</h2> 

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
     <div style="width:950px">
        <a style="margin:0em 0em 0em 0.5em;">Type Bus:</a><a style="margin:5em 0em 0em 0.5em;">
            <asp:DropDownList ID="dropdownlist1" runat="server" Width="100px">
                <asp:ListItem></asp:ListItem>
            </asp:DropDownList>
        </a>
        <a style="margin:0em 0em 0em 0.5em;">Price:</a><a style="margin:0em 0em 0em 0.5em;">
            <asp:DropDownList ID="dropdownlist2" runat="server" Width="100px">
                <asp:ListItem></asp:ListItem>
            </asp:DropDownList>
       </a>
        <asp:Button ID="btnsearch" runat="server" Text="Search" onclick="btnsearch_Click1" 
             />
        <asp:Label ID="lblnull" runat="server" Text="Not Found The Value" 
            BorderColor="#CC0000" ForeColor="#CC0000" Visible="False"></asp:Label>
    </div>  
    <table id="rounded-corner" >
        <tr>
        	<th scope="col" class="rounded-company"></th>
            <th scope="col" class="rounded">Type Bus</th>
            <th scope="col" class="rounded">Total Seats</th>
            <th scope="col" class="rounded">Price</th>
            <th scope="col" class="rounded">Description</th>
            <th scope="col" class="rounded">Edit</th>
            <th scope="col" class="rounded-q4">Delete</th>
        </tr>

<asp:ListView ID="ListView1" runat="server" ItemPlaceholderID="IDBusType" DataKeyNames="IDBusType">
    <ItemTemplate>
        <tr>
        	<td><input type="checkbox" name="idbustype" value="<%# Eval("IDBusType") %>"/></td>
            <td><%# Eval("Name") %></td>
            <td><%# Eval("TotalSeats") %></td>
            <td><%# Eval("Price")%></td>
            <td><%# Eval("Description")%></td>
            
            
    
            <td><a href="../Admin/UpdateBusType_Admin.aspx?idbustype=<%# Eval("IDBusType") %>&name=<%# Eval("Name") %>&total=<%# Eval("TotalSeats") %>&price=<%# Eval("Price") %>&des=<%# Eval("Description") %>" ><img src="../Images/user_edit.png" alt="" title="" border="0" /></a></td>
            <td><a href="../Admin/DeleteBusType_Admin.aspx?idbustype=<%# Eval("IDBusType") %>" class="ask"><img src="../Images/trash.png" alt="" title="" border="0" /></a></td>
        </tr>
    </ItemTemplate>
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" ID="IDBusType"></asp:PlaceHolder>
    </LayoutTemplate>
    
</asp:ListView> 
</table>
	 <a href="../Admin/AddBusType_Admin.aspx" class="bt_green"><span class="bt_green_lft"></span><strong>Add new item</strong><span class="bt_green_r"></span></a>
     
     <a href="#" class="bt_red"><span class="bt_red_lft"></span><strong>Delete items</strong><span class="bt_red_r"></span></a> 
     

     <div class="pagination">
         <asp:DataPager ID="DataPagerForAlbums" runat="server" PagedControlID="ListView1" PageSize="5">
                <Fields>
                    <asp:NextPreviousPagerField ShowFirstPageButton="True" FirstPageText="&laquo prev" ShowNextPageButton="False"  ShowPreviousPageButton="false" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField ShowLastPageButton="True" LastPageText="&raquo next" ShowPreviousPageButton="False"  ShowNextPageButton="false" />
                </Fields>
         </asp:DataPager>
     </div>
        
        </p>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="DataPagerForAlbums" />
    </Triggers>
</asp:UpdatePanel>

